import 'package:fish_redux/fish_redux.dart';

enum NbOrderViewAction {
  action,
  onTapTime,
  onLoad,
  onGetData,
}

class NbOrderViewActionCreator {
  static Action onAction() {
    return const Action(NbOrderViewAction.action);
  }

  static Action onTapTime() {
    return const Action(NbOrderViewAction.onTapTime);
  }

  static Action onLoad(page) {
    return Action(NbOrderViewAction.onLoad, payload: page);
  }

  static Action onGetData(data) {
    return Action(NbOrderViewAction.onGetData, payload: data);
  }
}
